﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                color: black; text-indent: 1em;" runat="server">产权置换协议合同打印 </font>
        </td>
    </tr>
</table>
<center style="margin-left: 10px;">
    <table class="window_tab_list" border="0" cellpadding="0" cellspacing="0" align="center" width="98%"
        style="margin-top: 1px">
        <tr>
            <th>
                产权置换协议合同打印
            </th>
        </tr>
        <tr>
            <td style="text-align: right; color: Red; font-size: 12px;">
                您正在进行第<asp:Label ID="dycs" runat="server" Text=""></asp:Label>次打印&nbsp;&nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <th style="text-align: left">
                方式一：批量打印
            </th>
        </tr>
        <tr>
            <td style="text-align: left; height: 30px">

            <script type="text/javascript">
            var HKEY_Path="HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";　 　　    
            function PageSetup(name,value){  
            try{ var Wsh=new ActiveXObject("WScript.Shell");  
            Wsh.RegWrite(HKEY_Path+name,value);}
            catch(e){ alert('需要运行Activex才能进行打印设置。'); }}　  
            PageSetup('header','');   
            PageSetup('footer',''); 　　 
            var num=0.5   
            PageSetup('margin_left',num);   
            PageSetup('margin_top',num); 
            PageSetup('margin_right',num);  
            PageSetup('margin_bottom',num);  
            function DoPrintView(url)
            {   
                    url=window.location.protocol+"//"+window.location.host+"//"+url;
                    DLPrinter.IsLandScape=1;
                    DLPrinter.ContentURL=url; 
                    DLPrinter.PrintPreview();
            }
           var i=0;
            function DoPrintj()
            {
                var tempurl=document.getElementById('<%=showtempurl.ClientID %>').value;              
                var tempurlarr=tempurl.split(';');    
                if(i<tempurlarr.length) 
                {
                    if(i==0)
                    {
                    var url=window.location.protocol+"//"+window.location.host+"//"+tempurlarr[i];    
                            DLPrinter.IsLandScape=1;  
                            DLPrinter.ContentURL=url; 
                            DLPrinter.PrintDirect(); 
                            i++;
                            
                            DoPrintj();
                           
                    }else {
                           setTimeout(
                           function(){   
                            var url=window.location.protocol+"//"+window.location.host+"//"+tempurlarr[i];    
                            DLPrinter.IsLandScape=1;  
                            DLPrinter.ContentURL=url; 
                            DLPrinter.PrintDirect();
                            
                            i++;
                            DoPrintj();
                           },10000);
                       }
                    }else 
                    {i=0;}                                             
            }             
            
            var oi=0;       
            function DoPrinto()
            {
               var tempurl=document.getElementById('<%=showtempurlo.ClientID %>').value;              
                var tempurlarr=tempurl.split(';');                
                if(oi<tempurlarr.length) 
                {
                  if(oi==0)
                    {
                         var url=window.location.protocol+"//"+window.location.host+"//"+tempurlarr[tempurlarr.length-1-oi];   
                        DLPrinter.IsLandScape=1;  
                        DLPrinter.ContentURL=url; 
                        DLPrinter.PrintDirect(); 
                        oi++;
                       
                        DoPrinto();
                           
                    }else {                
                       setTimeout(
                       function(){                  
                        var url=window.location.protocol+"//"+window.location.host+"//"+tempurlarr[tempurlarr.length-1-oi];      
                        DLPrinter.IsLandScape=1;
                        DLPrinter.ContentURL=url; 
                        DLPrinter.PrintDirect(); 
                        oi++;
                        DoPrinto();
                       },10000);
                   }
                    }else 
                    {oi=0;}   
                       
            }
                </script>
                <input type="button" value="奇数页直接打印" onclick='if(confirm("点击确认将直接批量打印!")){DoPrintj();DoPrinto();}'
                    style="border: 1px solid #ccc; background-color: #D2E2F5; background-image: url('style/an1.gif');
                    width: 80px; height: 24px" />
                <%--<input type="button" value="奇数页直接打印" onclick='if(confirm("点击确认将直接批量打印奇数页(01,03,05,07,09,11,13,15)!")){DoPrintj()}'
                    style="border: 1px solid #ccc; background-color: #D2E2F5; background-image: url('style/an1.gif');
                    width: 80px; height: 24px" />
                <input type="button" value="偶数页直接打印" onclick='if(confirm("点击确认将直接批量打印偶数页(02,04,06,08,10,12,14)!")){DoPrinto()}'
                    style="border: 1px solid #ccc; background-color: #D2E2F5; background-image: url('style/an1.gif');
                    width: 80px; height: 24px" />--%>
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
    </table>
    <asp:TextBox ID="showtempurl" runat="server" Style="display: none"></asp:TextBox>
    <asp:TextBox ID="showtempurlo" runat="server" Style="display: none"></asp:TextBox>
    <table align="center" border="0" cellpadding="0" cellspacing="0" class="window_tab_list" style="margin-top: 1px"
        width="98%">
        <tr>
            <th style="text-align: left" colspan="2">
                方式二：单个打印
            </th>
        </tr>
        <tr>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议01") %>")' style="cursor: pointer">
                    房屋征收产权置换协议01</span>
            </td>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议02") %>")' style="cursor: pointer">
                    房屋征收产权置换协议02</span>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议03") %>")' style="cursor: pointer">
                    房屋征收产权置换协议03</span>
            </td>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议04") %>")' style="cursor: pointer">
                    房屋征收产权置换协议04</span>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议05") %>")' style="cursor: pointer">
                    房屋征收产权置换协议05</span>
            </td>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议06") %>")' style="cursor: pointer">
                    房屋征收产权置换协议06</span>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议07") %>")' style="cursor: pointer">
                    房屋征收产权置换协议07</span>
            </td>
            <td style="text-align: left">
             <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议08") %>")' style="cursor: pointer">
                    房屋征收产权置换协议08</span>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议09") %>")' style="cursor: pointer">
                    房屋征收产权置换协议09</span>
            </td>
            <td style="text-align: left">
             <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议10") %>")' style="cursor: pointer">
                    房屋征收产权置换协议10</span>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议11") %>")' style="cursor: pointer">
                    房屋征收产权置换协议11</span>
            </td>
            <td style="text-align: left">
             <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议12") %>")' style="cursor: pointer">
                    房屋征收产权置换协议12</span>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议13") %>")' style="cursor: pointer">
                    房屋征收产权置换协议13</span>
            </td>
            <td style="text-align: left">
             <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议14") %>")' style="cursor: pointer">
                    房屋征收产权置换协议14</span>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <span onclick='DoPrintView("<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind2("房屋征收产权置换协议15") %>")' style="cursor: pointer">
                    房屋征收产权置换协议15</span>
            </td>
            <td style="text-align: left">           
            </td>
        </tr>
       
    </table>
    <table align="center" border="0" cellpadding="0" cellspacing="0" class="window_tab_list" style="margin-top: 1px;display: none1" width="98%">
        <tr>
            <th style="text-align: left">
                方式二：单个打印
            </th>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议01") %>' target="_blank">房屋征收产权置换协议01</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议02") %>' target="_blank">房屋征收产权置换协议02</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议03") %>' target="_blank">房屋征收产权置换协议03</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议04") %>' target="_blank">房屋征收产权置换协议04</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议05") %>' target="_blank">房屋征收产权置换协议05</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议06") %>' target="_blank">房屋征收产权置换协议06</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议07") %>' target="_blank">房屋征收产权置换协议07</a>
            </td>
        </tr>
          <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议08") %>' target="_blank">房屋征收产权置换协议08</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议09") %>' target="_blank">房屋征收产权置换协议09</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议10") %>' target="_blank">房屋征收产权置换协议10</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议11") %>' target="_blank">房屋征收产权置换协议11</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议12") %>' target="_blank">房屋征收产权置换协议12</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议13") %>' target="_blank">房屋征收产权置换协议13</a>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议14") %>' target="_blank">房屋征收产权置换协议14</a>
            </td>
        </tr> 
         <tr>
            <td style="text-align: left">
                <a href='<%=WebSys.UI.Control.ZhengShou.hetongCQprintControl.Bind("房屋征收产权置换协议15") %>' target="_blank">房屋征收产权置换协议15</a>
            </td>
        </tr>
    </table>
</center>
